package com.itheima.dubbo.api;

import com.tanhua.model.mongoDb.Video;
import com.tanhua.model.vo.PageResult;

import java.util.List;

/**
 * @Author Pan Rundong
 * @Date 2023-03-07 13:06
 * @Desc 视频Api
 */
public interface VideoApi {
    /**
     * 发布视频
     *
     * @param video
     * @return java.lang.String
     * @Author Pan Rundong
     */
    String save(Video video);

    /**
     * 根据Vid查询视频
     *
     * @param vids
     * @return java.util.List<com.tanhua.model.mongoDb.Video>
     * @Author Pan Rundong
     */
    List<Video> findMovementsByVids(List<Long> vids);

    /**
     * 分页查询视频
     *
     * @param page
     * @param pagesize
     * @return java.util.List<com.tanhua.model.mongoDb.Video>
     * @Author Pan Rundong
     */
    List<Video> queryVideoList(int page, Integer pagesize);

    /**
     * 视频分页查询
     *
     * @param page
     * @param pagesize
     * @param uid
     * @return com.tanhua.model.vo.PageResult
     * @Author Pan Rundong
     */
    PageResult findVideosByPage(Integer page, Integer pagesize, Long uid);
}
